import re

str1 = '@ming @qing @yumh'
pattern = r'\s*@'
list1 = re.split(pattern, str1)
print('您的好友有: ')
for item in list1:
    if item != "":
        print(item)
